Skip to content

Conversation

@kalxed
Copy link
Collaborator

@kalxed kalxed commented May 26, 2025

Currently changes functionality so that you have to instantiate to use with methods. Not a consistent implementation with methods or associated functions yet, going to move to methods most likely. Distance function argument being developed right now.

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2025

Test Results

540 tests  +29   539 ✅ +29   27m 32s ⏱️ - 18m 3s
  2 suites ± 0     1 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 5fbb6ba. ± Comparison against base commit 4103bde.

This pull request removes 13 and adds 42 tests. Note that renamed tests count towards both.
src/phylo_info/phyloinfo_builder.rs - phylo_info::phyloinfo_builder::PhyloInfoBuilder<A,AA> ‑ alphabet (line 100)
src/phylo_info/phyloinfo_builder.rs - phylo_info::phyloinfo_builder::PhyloInfoBuilder<A,AA> ‑ build_w_rng (line 127)
src/phylo_info/phyloinfo_builder.rs - phylo_info::phyloinfo_builder::PhyloInfoBuilder<A,AA> ‑ tree_file (line 86)
src/phylo_info/phyloinfo_builder.rs - phylo_info::phyloinfo_builder::PhyloInfoBuilder<MSA,MASA> ‑ new (line 37)
src/phylo_info/phyloinfo_builder.rs - phylo_info::phyloinfo_builder::PhyloInfoBuilder<MSA,MASA> ‑ with_attrs (line 58)
tree::tests ‑ compute_distance_matrix_close
tree::tests ‑ compute_distance_matrix_far
tree::tests ‑ nj_correct
tree::tests ‑ nj_correct_2
tree::tests ‑ nj_correct_web_example
…
evolutionary_distances::tests ‑ levenshtein_dna_corrected
evolutionary_distances::tests ‑ levenshtein_dna_corrected_corners
evolutionary_distances::tests ‑ levenshtein_dna_corrected_sanity
evolutionary_distances::tests ‑ levenshtein_edit_dist
evolutionary_distances::tests ‑ levenshtein_protein_corrected
evolutionary_distances::tests ‑ levenshtein_protein_corrected_corners
evolutionary_distances::tests ‑ levenshtein_protein_corrected_sanity
phylo_info::phyloinfo_builder::private_tests ‑ build_dna_nj_tree_wo_builder
phylo_info::phyloinfo_builder::private_tests ‑ build_protein_nj_tree_wo_builder
random::fake_random::tests ‑ fake_shuffle_umax
…

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented May 26, 2025

Codecov Report

❌ Patch coverage is 99.42529% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.18%. Comparing base (527040d) to head (5fbb6ba).
⚠️ Report is 20 commits behind head on develop.

Files with missing lines Patch % Lines
phylo/src/phylo_info/phyloinfo_builder.rs 96.42% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #60      +/-   ##
===========================================
+ Coverage    96.32%   97.18%   +0.86%     
===========================================
  Files           32       41       +9     
  Lines         4355     5048     +693     
===========================================
+ Hits          4195     4906     +711     
+ Misses         160      142      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kalxed
Copy link
Collaborator Author

kalxed commented May 27, 2025

Yeah I actually have code changes that fix some of what you said, just have the issue using TextSlices from bio package for distance function. Might remove that for now and commit the private tests

@kalxed kalxed linked an issue Jun 20, 2025 that may be closed by this pull request
kalxed and others added 3 commits August 4, 2025 17:24
…dded and function can be broken down further. Good for initial review.
Added a test case with the original distance matrix and final tree from
the original paper to check NJBuilder against.
kalxed added 2 commits August 5, 2025 20:12
…ic over types implementing EvolutionaryDistance trait, created evolutionary_distances module
Removed mut self from tree builder interface, now rng should be provided to the build method instead
…/rust-phylo into feature/stochastic-tree-builder
Simplified JC96-style evolutionary distance computations and clarified comments
@junniest
Copy link
Contributor

The rust version was bumped from 1.82.0 to 1.84.0 because the isqrt method is only stable since 1.84.0.

@junniest junniest requested a review from Copilot November 10, 2025 20:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@junniest junniest requested a review from MattesMrzik November 11, 2025 11:21
Copy link
Collaborator

@MattesMrzik MattesMrzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

junniest and others added 11 commits November 13, 2025 09:21
Refactored starting tree creation into a method to remove duplicate code
Fixed `nj_builder_fake_softmax` test to make FakeRng return correct values and get exactly identical
trees.
Fixed the docstring comment for the argmax option in NJTreeBuilder for clarification

Co-authored-by: Mattes Mrzik <[email protected]>
…/rust-phylo into feature/stochastic-tree-builder
Fixied comment to clarify how FakeRng::shuffle works
@junniest junniest merged commit ae92181 into develop Nov 17, 2025
17 checks passed
@junniest junniest deleted the feature/stochastic-tree-builder branch November 17, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move tree building with NJ in a builder class

3 participants